package org.train.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.train.entity.ProjectPo;
import org.train.service.ProjectService;

// 调试大厅（笑）
@RestController
public class CommonController{
    @Autowired
    private ProjectService service;

    @GetMapping("/say")
    public Object say(){
        IPage<ProjectPo> tmp = service.page(new Page<>(1, 5));
        System.out.println(tmp.getRecords().size());
        return tmp;
    }

}
